#include <bits/stdc++.h>
using namespace std;
#define N 10005
#define M 1004535809
int n, a[N], s[N];
int main()
{
    int n;
    cin>>n;
    s[0] = 0;
    for(int i = 1; i <= n; ++i)
    {
        cin>>a[i];
        s[i] = s[i-1] + a[i];
    }
    for(int i = 1; i <= n; ++i)
        cout<<s[i]<<' ';
    return 0;
}
